﻿using ElasticSearchDemo.Domain.Command;
using MediatR;

namespace ElasticSearchDemo.Domain.CommandHandler
{
    public class AddUserHandler : IRequestHandler<AddUser, bool>
    {
        public Task<bool> Handle(AddUser request, CancellationToken cancellationToken)
        {
            Thread.Sleep(2000);

            return Task.FromResult(true);
        }
    }
}
